//
//  MainViewController.h
//  Growth
//
//  Created by 洪波 陈 on 5/18/12.
//  Copyright (c) 2012 MEETStudio. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "SelectTimelineViewController.h"
#import "GrowthAppDelegate.h"
#import "GrowthViewController.h"
#import "TimelineSettingViewController.h"
#import "SettingViewController.h"

#import "LoginViewController.h"

@class TLTrendsViewController;
@class TimelineViewController;
@class RecordViewController;
@interface MainViewController : UIViewController
<UINavigationBarDelegate,
UITabBarDelegate,
SelectTimelineViewDelegate,
UINavigationControllerDelegate,
UIImagePickerControllerDelegate,
LoginViewControllerDelegate>
{
    UIView *contentView;
    IBOutlet UITabBarItem *defaultTabBarItem;
    IBOutlet UITabBar *tabBar;
    
    UIButton *selectedTabBarbutton;
    
    IBOutlet UIButton *trendsButton;
    IBOutlet UIButton *personalButton;
    IBOutlet UIButton *cameraButton;
    IBOutlet UIButton *familyButton;
    IBOutlet UIButton *toolsButton;
    
    
    UIColor *defaultTintColor;
    
    UIViewController *contentViewController;
    
    TLTrendsViewController *trendsViewController;
    TimelineViewController *personalViewController;
    UIViewController *familyViewController;
    ToolBoxViewController *toolsViewController;
    
    UIViewController *friendsViewController;
    SettingViewController *settingsViewController;
    RecordViewController *recordViewController;
    
    //顶部切换时间轴view
    SelectTimelineViewController *selectTimelineViewController;
    
    //camera
    UIImagePickerController *currentImagePickerController;
	UIButton *photoLibraryButton;
    
    
}
@property (nonatomic, retain) IBOutlet UIView *contentView;

@property (nonatomic, retain) UIViewController *contentViewController;

@property (nonatomic, retain) UIViewController *trendsViewController;
@property (nonatomic, retain) UIViewController *personalViewController;
@property (nonatomic, retain) UIViewController *familyViewController;
@property (nonatomic, retain) UIViewController *toolsViewController;

@property (nonatomic, retain) UIViewController *friendsViewController;
@property (nonatomic, retain) UIViewController *settingsViewController;
@property (nonatomic, retain) UIViewController *recordViewController;

//相机
@property (nonatomic,retain)   UIImagePickerController *currentImagePickerController;
@property (nonatomic,retain)   UIButton *photoLibraryButton;



- (void)addTimelineSelectView;

- (void)loadTrendsTopView;

- (void)loadPersonalTopView;
- (void)addTimelineSelectView;
- (void)loadFamilyTopView;
- (void)loadToolsTopView;
- (void)loadCameraView;

#pragma mark 相机
- (IBAction)showCamera:(id)sender;

-(void)addSomeElements:(UIViewController *)viewController;

-(UIView *)findView:(UIView *)aView withName:(NSString *)name;

- (void)hideLibraryButton;

- (void)showLibraryButtonAfterDelay;

//登陆页面
- (void)loadLoginView;

@end
